export function resources(callback?: any) {
  const defualtConfig = [
    {
      name: 'SHEET_UNIVER_THREAD_COMMENT_PLUGIN',
      data: '{}',
    },
    {
      name: 'SHEET_RANGE_PROTECTION_PLUGIN',
      data: '',
    },
    {
      name: 'SHEET_AuthzIoMockService_PLUGIN',
      data: '{}',
    },
    {
      name: 'SHEET_SPARKLINE_PLUGIN',
      data: '{}',
    },
    {
      name: 'SHEET_WORKSHEET_PROTECTION_PLUGIN',
      data: '{}',
    },
    {
      name: 'SHEET_WORKSHEET_PROTECTION_POINT_PLUGIN',
      data: '{}',
    },
    {
      name: 'SHEET_DRAWING_PLUGIN',
      data: '{}',
    },
    {
      name: 'SHEET_PIVOT_TABLE_PLUGIN',
      data: '{"dataFieldManagerConfig":{"KPqeEi":{"collections":{},"dataFields":{}}},"pivotTableConfigs":{}}',
    },
    {
      name: 'SHEET_CHART_PLUGIN',
      data: '{}',
    },
    {
      name: 'SHEET_CONDITIONAL_FORMATTING_PLUGIN',
      data: '',
    },
    {
      name: 'SHEET_HYPER_LINK_PLUGIN',
      data: '{}',
    },
    {
      name: 'SHEET_DEFINED_NAME_PLUGIN',
      data: '{}',
    },
    {
      name: 'SHEET_RANGE_THEME_MODEL_PLUGIN',
      data: '{}',
    },
    {
      name: 'SHEET_DATA_VALIDATION_PLUGIN',
      data: '{}',
    },
    {
      name: 'SHEET_FILTER_PLUGIN',
      data: '{}',
    },
  ];
  if (callback) {
    return defualtConfig.map(callback);
  }
  return defualtConfig;
}
